package net.orange.framework.validator;

import net.orange.architecture.validator.ObjectValidator;
import net.orange.architecture.web.LocalizationMessage;

/**
 * The base validator of framework,every validator in framework packet should
 * extended the FrameworkValidator object. It can support the message
 * localization function.
 */
public abstract class FrameworkValidator extends ObjectValidator {

	/**
	 * The message resource file url.
	 */
	private static String MESSAGE_RESOURCE = "net/orange/conf/lang/fw";

	/**
	 * The localization message
	 */
	protected LocalizationMessage message;

	/**
	 * The default constructor.
	 */
	public FrameworkValidator() throws Exception {
		message = LocalizationMessage.getInstance(MESSAGE_RESOURCE);
	}
}
